package com.itheima.xx.pojo;

import java.sql.Timestamp;
import java.util.List;

/**
 * Description:
 *
 * @author codermao
 * @date 2023/10/28 15:54
 */
public class User {
    private Integer id;
    private String userName;
    private String password;
    private String remark;
    private String email;
    private Timestamp createTime;
    private Timestamp updateTime;

    //一个用户可以有多个角色
    private List<Role> roleList;

    public User() {
    }

    public User(Integer id, String userName, String password, String remark, String email, Timestamp createTime, Timestamp updateTime) {
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.remark = remark;
        this.email = email;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", remark='" + remark + '\'' +
                ", email='" + email + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", roleList=" + roleList +
                '}';
    }
}
